package com.bitejiuyeke.forum.model;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
@ApiModel("用户信息")
@Data
public class User {
    private Long id;
   @ApiModelProperty("用户名")
    private String username;
@JsonIgnore  //不参与JSON序列化
    private String password;
    @ApiModelProperty("用户名称")
    private String nickname;

    private String phoneNum;
    @ApiModelProperty("用户邮件")
    private String email;

    private Byte gender;
 @JsonIgnore  //不参与JSON序列化
    private String salt;
    @JsonInclude(JsonInclude.Include.ALWAYS)  //任何情况都参与JSON序列化
    private String avatarUrl;

    private Integer articleCount;

    private Byte isAdmin;

    private String remark;

    private Byte state;
 @JsonIgnore  //不参与JSON序列化
    private Byte deleteState;

    private Date createTime;

    private Date updateTime;


}